<!---
Kalendar

COPYRIGHT & LICENSING INFO
-------------------------------------------------------------------

Copyright 2006 TJ Downes - tdownes@sanative.net - http://www.sanative.net

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

--->
<!--- Was this an rss request, then deal with it quickly and cleanly --->
<cfif KalendarRequest.getView() IS "rss" >
<cfcontent type="text/xml" reset="true"><cfoutput>#KalendarRequest.getReturnedEventsXML()#</cfoutput>
	<cfsetting showdebugoutput="no" />
	<cfabort />
</cfif>
<!--- Must be an HTML request --->
<cfcontent reset="true"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><cfoutput>#KalendarConfig.getAppTitle()#</cfoutput></title>
	<link href="<cfoutput>#KalendarConfig.getCSSPath()#</cfoutput>kalendar_<cfoutput>#session.user.getRoleCode()#</cfoutput>.css" rel="stylesheet" type="text/css" />
	<link href="<cfoutput>#KalendarConfig.getCSSPath()#</cfoutput>thickbox_<cfoutput>#session.user.getRoleCode()#</cfoutput>.css" rel="stylesheet" type="text/css" media="screen" />
	<!--- css for tooltips (clueTip) --->
	<link href="<cfoutput>#KalendarConfig.getCSSPath()#</cfoutput>cluetip_<cfoutput>#session.user.getRoleCode()#</cfoutput>.css" rel="stylesheet" type="text/css" />
	<link rel="alternate" type="application/rss+xml" title="Kalendar of Events for <cfoutput>#KalendarRequest.getLongLinkDate()#</cfoutput>" href="http://<cfoutput>#cgi.server_name##cgi.script_name#?view=rss</cfoutput>" />
	<!--
		jQuery scripts that provide tooltips (clueTip). 
		Refrer to http://plugins.learningjquery.com/cluetip/ if you want to modify the tooltips. 
	-->
	<script src="<cfoutput>#KalendarRequest.getKalendarConfig().getJavascriptPath()#</cfoutput>jquery/jquery.js" type="text/javascript"></script>
	<script src="<cfoutput>#KalendarRequest.getKalendarConfig().getJavascriptPath()#</cfoutput>jquery/jquery.dimensions.js" type="text/javascript"></script>
	<script src="<cfoutput>#KalendarRequest.getKalendarConfig().getJavascriptPath()#</cfoutput>jquery/jquery.hoverIntent.js" type="text/javascript"></script>
	<script src="<cfoutput>#KalendarRequest.getKalendarConfig().getJavascriptPath()#</cfoutput>jquery/jquery.cluetip.js" type="text/javascript"></script>
	<script src="<cfoutput>#KalendarRequest.getKalendarConfig().getJavascriptPath()#</cfoutput>jquery/kalendar.js" type="text/javascript"></script>
	<script src="<cfoutput>#KalendarRequest.getKalendarConfig().getJavascriptPath()#</cfoutput>jquery/thickbox.js" type="text/javascript"></script>
	<script type="text/javascript">
		var tb_pathToImage = "<cfoutput>#KalendarRequest.getKalendarConfig().getImagePath()#</cfoutput>loadingAnimation.gif";
	</script>
</head>
<body>
	
<div style="margin-left: auto; margin-right: auto; width:100%;">
<!--- Load the proper view --->
<cfmodule template="#KalendarConfig.getCustomTagPath()#kalendar.cfm"
		CalendarLinkPage="eventdetails.cfm"
		ExcludeTimeHeader="no"
		KalendarRequest="#KalendarRequest#"
		View="#KalendarRequest.getView()#"
		ToolTipFormatter="#application.ToolTipUtil#">
<!--- version: <cfoutput>#KalendarConfig.getKalendarBuildNumber()#</cfoutput> --->
</div>
</body>
</html>